<?php

define( "PATH", 'classes/');
session_start();

require_once( PATH . 'database/database.class.php' );
require_once( PATH . 'seguranca/seguranca.class.php' );
require_once( PATH . 'usuario/usuario.class.php');
require_once( PATH . 'login/login.class.php');
require_once( PATH . 'data/data.class.php');
require_once( PATH . 'endereco/endereco.class.php');
require_once( PATH . 'contato/contato.class.php');
require_once( PATH . 'dados/dados.class.php');
require_once( PATH . 'acesso/acesso.class.php');

$login = new Acesso();
$user = $login->logar();

if ( $user->login->id )
{
	if ( !@$_GET['pag'] )
		$_GET['pag'] = 'home';

	if ( @!$_GET['t'] )
		$_GET['t'] = 'index';

	include ('content/content.php');

}

?>